package com.esgov.chatbot.entity.chatbot.chat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * @author Eric Lao
 * @since 2023/3/22 16:14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("Chat接口返回Message的知识点")
public class MessageKnowledge {

    @ApiModelProperty("命中问题在知识库中的ID")
    private String id;

    @ApiModelProperty("命中的问题（faq）的名称")
    private String name;

    @ApiModelProperty("命中问题的答案")
    private String content;

    @ApiModelProperty("答案的类型：TEXT:纯文本；RICH_TEXT:富文本；IMAGE:图片；AUDIO:音频；VIDEO:视频；ATTACHMENT:附件")
    private String contentType;

    @ApiModelProperty("是否大模型答案：0否，1是")
    private Integer chatGLM;

    @ApiModelProperty("命中语句")
    private String hitStatement;

    @ApiModelProperty("关联知识列表")
    private List<RelatedKnowledge> relatedKnowledges;

    @ApiModelProperty("答案来源")
    private String source;

    @ApiModelProperty("匹配度")
    private Double score;
}
